<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script language="javascript" type="text/javascript" src="../js/login_form.js"></script>
	<link rel="stylesheet" type="text/css" media="all" href="../css/user/login-form.css" />
</head>

<html>
	<body>
		<div id="login-form">
			<s:form action="Register" method="post" cssClass="niceform" namespace="/user">
				<fieldset>
			    	<legend>注册信息</legend>
			    	<!-- Name Field -->
					<dl>
						<dt><label for="name">用户名:</label></dt>
			            <dd><input type="text" name="name" id="name" size="30" maxlength="128" /></dd>
			            <s:fielderror cssClass="error">
			            	<s:param >user.name</s:param>
			            </s:fielderror>
					</dl>
			    	<!-- Password Field -->
					<dl>
			        	<dt><label for="password">密码:</label></dt>
			            <dd><input type="password" name="password" id="password" size="30" maxlength="32" /></dd>
      			        <s:fielderror cssClass="error">
			            	<s:param >user.password</s:param>
			            </s:fielderror>
			        </dl>
			    	<!-- Password Confirm Field -->
					<dl>
			        	<dt><label for="pwdConfirm">密码确认:</label></dt>
			            <dd><input type="password" name="pwdConfirm" id="pwdConfirm" size="30" maxlength="32" /></dd>
			            <s:fielderror cssClass="error">
			            	<s:param >pwdConfirm</s:param>
			            </s:fielderror>
			        </dl>
			    	<!-- Email Field -->
			        <dl>
			        	<dt><label for="email">邮件地址:</label></dt>
			            <dd><input type="text" name="email" id="email" size="30" maxlength="128" /></dd>
			            <s:fielderror cssClass="error">
			            	<s:param >user.email</s:param>
			            </s:fielderror>
			        </dl>
			        <!-- Sex Selection -->
			        <dl>
			        	<dt><label for="sex">性别:</label></dt>
			            <dd>
			            	<select size="1" name="sex" id="sex">
			                    <option value="male">男</option>
			                    <option value="female">女</option>
			            	</select>
			            </dd>
			        </dl>
			    </fieldset>
			    <!-- Submit Button -->
			    <fieldset class="action">
			    	<input type="submit" name="submit" id="submit" value="注册"/>
			    </fieldset>
			</s:form>
		</div>
	</body>
</html>
